import request from '@/utils/request'

/**
 * 根据供应商id获取配置参数
 */
export function getBySupplierId(supplierId) {
  return request({
    url: '/user/supplierConfig/getBySupplierId',
    method: 'get',
    params: { supplierId }
  })
}

/**
 * 保存供应商配置
 * @param data
 */
export function saveSupplierConfig(data) {
  return request({
    url: '/user/supplierConfig/save',
    method: 'post',
    data
  })
}
